﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace DataModels.Controls
{
    class MouseInput
    {
        Button leftMouseButton;
        Button rightMouseButton;

        TimeSpan CLICK_SPEED = new TimeSpan(10000000 * 1);//1 Second

        public MouseInput()
        {

        }

        public void processMouseInput(
            ComputerInput computerInput,
            GameTime elapsedTime)
        {

            if (computerInput.isMouseLeftButtonDown())
            {
                leftMouseButton.pushButton();
            }
            else
            {
                leftMouseButton.releaseButton();
            }
            
            if (computerInput.isMouseRightButtonDown())
            {

                rightMouseButton.pushButton();
            }
            else
            {
                rightMouseButton.releaseButton();
            }

        }

    }
}
